<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
<%--<fieldset class="fs-input-params">
    <%
        var model = Model as InputParametersModel; %>
                    <legend><%= (string)GetLocalResourceObject("InputParams")%></legend>
                    <table class="form-input-params">
                        <tr>
                            <td class="label">
                                <label for="<%= Reflector.GetPropertyName<SolutionModel>(x => x.Problem.InputParameters.N) %>">
                                    <%= (string)GetLocalResourceObject("PointsCount")%>
                                </label>
                            </td>
                            <td class="value">
                                <%= Html.TextBox(Reflector.GetPropertyName<SolutionModel>(x => x.Problem.InputParameters.N), model.Problem.InputParameters.N)%>
                            </td>
                            <td class="hint"><%= (string)GetLocalResourceObject("PointsCount.Hint")%></td>
                        </tr>
                        <tr>
                            <td class="label">
                                <label for="inpX1">
                                    <%= (string)GetLocalResourceObject("x1")%>
                                </label>
                            </td>
                            <td class="value">
                                <%= Html.TextBox(Reflector.GetPropertyName<SolutionModel>(x => x.Problem.InputParameters.X1), model.Problem.InputParameters.X1, new { id = "inpX1" })%>
                            </td>
                        </tr>
                        <tr>
                            <td class="label">
                                <label for="inpX2">
                                    <%= (string)GetLocalResourceObject("x2")%>
                                </label>
                            </td>
                            <td class="value">
                                <%= Html.TextBox(Reflector.GetPropertyName<SolutionModel>(x => x.Problem.InputParameters.X2), model.Problem.InputParameters.X2, new { id = "inpX2" })%>
                            </td>
                        </tr>
                        <tr>
                            <td class="label">
                                <label for="inpY1">
                                    <%= (string)GetLocalResourceObject("y1")%>
                                </label>
                            </td>
                            <td class="value">
                                <%= Html.TextBox(Reflector.GetPropertyName<SolutionModel>(x => x.Problem.InputParameters.Y1), model.Problem.InputParameters.Y1, new { id = "inpY1" })%>
                            </td>
                        </tr>
                        <tr>
                            <td class="label">
                                <label for="inpY2">
                                    <%= (string)GetLocalResourceObject("y2")%>
                                </label>
                            </td>
                            <td class="value">
                                <%= Html.TextBox(Reflector.GetPropertyName<SolutionModel>(x => x.Problem.InputParameters.Y2), model.Problem.InputParameters.Y2, new { id = "inpY2" })%>
                            </td>
                        </tr>
                        <tr>
                            <td class="label">
                                <label for="inpZ1">
                                    <%= (string)GetLocalResourceObject("z1")%>
                                </label>
                            </td>
                            <td class="value">
                                <%= Html.TextBox(Reflector.GetPropertyName<SolutionModel>(x => x.Problem.InputParameters.Z1), Model.Problem.InputParameters.Z1, new { id = "inpZ1" })%>
                            </td>
                        </tr>
                        <tr>
                            <td class="label">
                                <label for="inpZ2">
                                    <%= (string)GetLocalResourceObject("z2")%>
                                </label>
                            </td>
                            <td class="value">
                                <%= Html.TextBox(Reflector.GetPropertyName<SolutionModel>(x => x.Problem.InputParameters.Z2), Model.Problem.InputParameters.Z2, new { id = "inpZ2" })%>
                            </td>
                        </tr>
                        <tr>
                            <td class="label">
                                <label for="f">
                                    <%= (string)GetLocalResourceObject("LeftPart")%>
                                </label>
                            </td>
                            <td class="value"><%= Html.TextBox("f", "") %></td>
                            <td class="hint"><%= (string)GetLocalResourceObject("LeftPart.Hint")%></td>
                        </tr>
                        <tr>
                            <td class="label">
                                <label for="inpG">
                                    <%= (string)GetLocalResourceObject("ValueOnBoundary")%>
                                </label>
                            </td>
                            <td class="value"><%= Html.TextBox(Reflector.GetPropertyName<SolutionModel>(x => x.Problem.InputParameters.G), Model.Problem.InputParameters.G, new { id = "inpG" })%></td>
                            <td class="hint"><%= (string)GetLocalResourceObject("ValueOnBoundary.Hint")%></td>
                        </tr>
                        <tr>
                            <td class="label">
                                <label for="<%= Reflector.GetPropertyName<SolutionModel>(x => x.Problem.InputParameters.Epsilon) %>">
                                    <%= (string)GetLocalResourceObject("Epsilon")%>
                                </label>
                            </td>
                            <td class="value"><%= Html.TextBox(Reflector.GetPropertyName<SolutionModel>(x => x.Problem.InputParameters.Epsilon), Model.Problem.InputParameters.Epsilon)%></td>
                            <td class="hint"><%= (string)GetLocalResourceObject("Epsilon.Hint")%></td>
                        </tr>
                        <tr>
                            <td class="label">
                                <label for="<%= Reflector.GetPropertyName<SolutionModel>(x => x.Problem.InputParameters.H) %>">
                                    <%= (string)GetLocalResourceObject("H")%>
                                </label>
                            </td>
                            <td class="value"><%= Html.TextBox(Reflector.GetPropertyName<SolutionModel>(x => x.Problem.InputParameters.H), Model.Problem.InputParameters.H)%></td>
                            <td class="hint"><%= (string)GetLocalResourceObject("H.Hint")%></td>
                        </tr>
                        <tr>
                            <td class="label">
                                <label for="<%= Reflector.GetPropertyName<SolutionModel>(x => x.Problem.InputParameters.Alpha) %>">
                                    <%= (string)GetLocalResourceObject("Alpha")%>
                                </label>
                            </td>
                            <td class="value"><%= Html.TextBox(Reflector.GetPropertyName<SolutionModel>(x => x.Problem.InputParameters.Alpha), Model.Problem.InputParameters.Alpha)%></td>
                            <td class="hint"><%= (string)GetLocalResourceObject("Alpha.Hint")%></td>
                        </tr>
                    </table>
                </fieldset>
                <fieldset class="fs-problem">
                    <legend><%= (string)GetLocalResourceObject("Problem")%></legend>
                        <img id="imgFormula" title="<%= (string)GetLocalResourceObject("Problem")%>"
                             src="http://chart.apis.google.com/chart?cht=tx&chs=1x0&chf=bg,s,FFFFFF00&chco=000000&chl=\[ \left\{ \begin{array}{l l} \Delta u = f\\ u= <%= Model.Problem.InputParameters.G %> \quad \text{ on $x$=<%= Model.Problem.InputParameters.X1 %>, $y$=<%= Model.Problem.InputParameters.Y1 %>, $z$=<%= Model.Problem.InputParameters.Z1 %>, $x$=<%= Model.Problem.InputParameters.X2 %>, $y$=<%= Model.Problem.InputParameters.Y2 %>, $z$=<%= Model.Problem.InputParameters.Z2 %>}  \\ \end{array} \right.\]">
                </fieldset>
                <input type="submit" value="<%= (string)GetLocalResourceObject("Button.Solve")%>" />--%>
<fieldset class="fs-input-params">
    <% if (Model == null)
       { %>
    <%= ViewData.ModelMetadata.NullDisplayText %>
    <% }
       else if (ViewData.TemplateInfo.TemplateDepth > 1)
       { %>
    <%= ViewData.ModelMetadata.SimpleDisplayText %>
    <% }
       else
       { %>
    <table class="form-input-params">
        <% foreach (var prop in ViewData.ModelMetadata.Properties.Where(pm => pm.ShowForDisplay && !ViewData.TemplateInfo.Visited(pm)))
           { %>
        <% if (prop.HideSurroundingHtml)
           { %>
        <%= Html.Editor(prop.PropertyName) %>
        <% }
           else
           { %>
        <tr>
            <td class="label">
                <% if (!String.IsNullOrEmpty(prop.GetDisplayName()))
                   { %>
                <label for="<%= prop.PropertyName %>">
                <%= prop.GetDisplayName() %>
                </label>
                <% } %>
            </td>
            <td class="value">
                <%= Html.Editor(prop.PropertyName) %>
            </td>
            <%--<td class="hint"><%= (string)GetLocalResourceObject("PointsCount.Hint")%></td>--%>
        </tr>
        <% } %>
        <% } %>
    </table>
    <% } %>
</fieldset>
